package threading;


import java.util.Scanner;

public class lianxi4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = gys(a,b);
        System.out.println(a*b/c);
    }
    public static int gys(int a,int b){
        int r;
        if(a==b){
            return a;
        }
        if(a<b){
            int chan = a;
            a = b;
            b = chan;
        }
        while((r = (a % b)) > 0){
            a = b;
            b = r;
        }
        return b;
    }
}
